$(function(){
    var locations = (window.location+"") .split('/');
    var location = locations[locations.length -1];
    location = location === ""?"/":location;
    $("a[href='"+location+"']").parent('li').addClass('active') ;
  });
  
 $(function(){
 	$("#addword").click(function(e){
		e.preventDefault();
		alert("hello");
	});
 }) ;